package com.upay.android.controller.policy;

import java.math.BigDecimal;

import com.upay.android.domain.transaction.TransactionLine;
import com.upay.android.domain.user.User;

public class FixedPaymentResultMappingPolicy extends AbstractResultMappingPolicy {

	/* ---- Constants ---- */
	
	/* ---- Instance Variables ---- */
	
	private TransactionLine transactionLine = null;

	/* ---- Constructors ---- */
	
	public FixedPaymentResultMappingPolicy(TransactionLine transactionLine, User user) {
		this.user = user;
		this.transactionLine = transactionLine;
	}
		
	/* ---- Business Methods ---- */

	@Override
	public void mapResult(BigDecimal result) {
		transactionLine.setValue(result);

	}
	
	/* ---- Getters and Setters ---- */
	
	public TransactionLine getTransactionLine() {
		return transactionLine;
	}

	public void setTransactionLine(TransactionLine transactionLine) {
		this.transactionLine = transactionLine;
	}
	
}
